#include <avr/io.h>
#include <util/delay.h>

void wait(int a)
{
int i,j;
for(i=0;i<a;i++)
	for(j=0;j<4;j++)
		_delay_ms(25);
}

void init(void)
{
DDRA=0x00;
PORTA=0x00;

DDRB=0x00;
PORTB=0xFF;

DDRC=0xFF;
PORTC=0xFF;

DDRD=0xFF;
PORTD=0xFF;
}

int adcdata(void)
{
	ADMUX=0xE0;
	ADCSRA=0xC3;
	while((ADCSRA&0x40)!=0x00);
	return ADCH;
}


int main(void)
{
init();
while(1)
	{
//PORTA=0xAA;
//PORTB=0xAA;
PORTC=0xAA;
//PORTD=0xAA;
wait(1);
//PORTA=0x55;
//PORTB=0x55;
PORTC=0x55;
//PORTD=0x55;
wait(1);
	}

return 0;
}
